<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>仓储系统--总部物料管理</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/zhanqu.css">
    <link rel="stylesheet" href="css/hdCk.css">
    <script src="js/base.js"></script>
</head>
<body>
<div class="all">
    <script src="js/top.js"></script>
    <div class="cnt">
        <div class="cnt">
            <div style="min-height:400px" class="nav" id="nav"></div>
            <script src="js/nav.js"></script>
            <div class="main">
                <div class="main_top">
                    <h3>总部物料管理</h3>
                    <div style="height: 1px;width:90%; background: #666666 "></div>
                    <div class="search" id="search_div">
                        <input id="stitle" style="margin-bottom: 20px" placeholder="物料名称"/>
                        <img id="search_btn"
                             onclick="search()"
                             width="16" src="images/search.png"/>
                    </div>
                    <div class="search">
                        <!--                    <select id="s_zq" onclick="searchByZq(s_zq.value)">-->
                        </select>
                        <div class="btn" id="add_btn" onclick="add()">新增物料</div>
                        <div class="btn" id="add_save_btn" style="display:none" onclick="add_save()">保存</div>
                        <div class="btn" id="edit_save_btn" style="display:none" onclick="edit_save()">返回</div>
                    </div>
                    <div id="loading" style="text-align: center;height:300px;line-height: 300px">
                        <img src="images/loading.webp"/>
                    </div>
                    <div id="list_div">
                    </div>

                    <div id="page_div">
                        <div class="page_btn" onclick="index_page()">首页</div>
                        <div class="page_btn" onclick="pre_page()">上一页</div>
                        <div class="page_btn"><span id="current_page"></span>/<span id="total_page"></span></div>
                        <div class="page_btn" onclick="next_page()">下一页</div>
                        <div class="page_btn" onclick="tail_page()">尾页</div>
                        <div class="page_btn"><input id="input_page"/></div>
                        <div class="page_btn" onclick="to_page()">跳转</div>
                    </div>

                </div>

                <div class="add_edit" id="add_div" style="display:none;">
                    <table>
                        <tr>
                            <td><span style="color:red">* </span></td>
                            <td>
                                <div class="table_div">请选择物料类型</div>
                            </td>
                            <td>
                                <div class="input_div"><select id="wl_type"></select></div>
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color:red">* </span></td>
                            <td>
                                <div class="table_div">物料名称</div>
                            </td>
                            <td>
                                <div class="input_div"><input id="wl_name"/></div>
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color:red">* </span></td>
                            <td>
                                <div class="table_div">物料编码</div>
                            </td>
                            <td>
                                <div class="input_div"><input id="code"/></div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">物料SN号</div>
                            </td>
                            <td>
                                <div class="input_div"><input id="sn_no"/></div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">供应商类型</div>
                            </td>
                            <td>
                                <select class="input_div" id="sup_type">
                                    <option>厂家</option>
                                    <option>外部</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">供应商名称</div>
                            </td>
                            <td>
                                <div class="input_div"><input id="sup_name"/></div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">供应商编码</div>
                            </td>
                            <td>
                                <div class="input_div"><input id="sup_code"/></div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">物料仓库</div>
                            </td>
                            <td>
                                <div class="input_div"><select id="wl_CK"></select></div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">成本价</div>
                            </td>
                            <td>
                                <div class="input_div"><input id="chengben"/></div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="table_div">状态</div>
                            </td>
                            <td>
                                <select id="status_sel">
                                    <option>上架</option>
                                    <option>下架</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="add_edit" id="edit_div" style="display:none;">
                    <div class="input_div">门店名称：<input id="e_md_name" class="md_name"/></div>
                    <div class="input_div">门店编码：
                        <input class="code" id="e_md_code"/>
                    </div>
                    <div class="input_div">负责人名称：
                        <input class="admin_name" id="e_admin_name"/>
                    </div>
                    <div class="input_div">负责人联系方式：
                        <input class="admin_tel" id="e_admin_tel"/>
                    </div>
                    <div class="input_div" id="e_option_zq"></div>
                    <div class="input_div" id="e_option_status">
                        状态:<select id="e_status">
                        <option>启用</option>
                        <option>禁用</option>
                    </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="bot">
            Copyright © 2022-2023 XINLING. All Rights Reserved.
        </div>
    </div>
    <script src="js/headquarterCK.js"></script>
</body>
</html>
